<template>
  <div class="price-page">
    
    <NavBar />
    <header class="header">
      <h1>价格</h1>
    </header>
    <div class="pricing-container">

      <div class="pricing-card">
        <h2>基础版</h2>
        <div class="price">免费</div>
        <ul class="features">
          <li>✔ 应用统计</li>
          <li>✔ 每日安装上限 100 次</li>
          <li>✔ 传递 App 拉起参数</li>
          <li>✔ 参数监控与基础报表</li>
          <li>✘ 不支持独立部署</li>
          <li>✘ 不含源码</li>
        </ul>
      </div>

      <div class="pricing-card">
        <h2>高级版</h2>
        <div class="price">¥99/月</div>
        <ul class="features">
          <li>✔ 基础版全部功能</li>
          <li>✔ 安装无限制</li>
          <li>✔ 多渠道归因与统计</li>
          <li>✔ 反作弊检测与风险标记</li>
          <li>✔ 多平台 SDK 支持</li>
          <li>✔ 自定义邀请参数与短链</li>
          <li>✘ 不支持独立部署</li>
          <li>✘ 不含源码</li>
        </ul>
      </div>

      <div class="pricing-card">
        <h2>独立部署版</h2>
        <div class="price">¥999/月</div>
        <ul class="features">
          <li>✔ 高级版全部功能</li>
          <li>✔ 独立部署与私有化安全策略</li>
          <li>✔ 国内/海外可部署</li>
          <li>✔ 自有数据，隔离存储</li>
          <li>✔ 性能与容量定制</li>
          <li>✘ 不含源码</li>
        </ul>
      </div>

      <div class="pricing-card">
        <h2>源码版本</h2>
        <div class="price">¥7999</div>
        <ul class="features">
          <li>✔ 全量源码交付</li>
          <li>✔ 可二次开发与定制</li>
          <li>✔ 私有部署与安全可控</li>
          <li>✔ 数据与源码均在自己手里</li>
          <li>✔ 含基础安装指导与交付文档</li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
import NavBar from '@/components/NavBarEnhanced.vue';

export default {
  components: {
    NavBar
  }
};
</script>

<style scoped>
.price-page {
  background-color: #ffffff;
  color: #303133;
  min-height: 100vh;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
  margin: 0;
  padding: 2rem;
}

.pricing-card {
  background-color: #ffffff;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  padding: 2rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.pricing-card h2 {
  margin-bottom: 1rem;
}

.header h1 {
  color: #303133;
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 1rem 0;
}

.features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.features li {
  margin: 0.5rem 0;
}

.footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

@media (max-width: 1200px) {
  .pricing-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-container {
    grid-template-columns: 1fr;
  }
}
</style>